
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zcvZipLib.h"
#include "com_javatoc_compress_CompressNotParam.h"

/*
 * Class:     com_javatoc_compress_CompressNotParam.h
 * Method:    ZcvZipInit
 * Signature: ()I
 */
JNIEXPORT jint JNICALL Java_com_javatoc_compress_CompressNotParam_compress(JNIEnv * env, jclass args)
  {
	printf("init compress\n");
	TZcvZipHndl hndl;
	TVideoZipParam pa;
	
	strcpy(pa.inFilename, "/root/oscompress/build/in/in.mp4");
	strcpy(pa.outFilename, "/root/oscompress/build/out/out.mp4");
	pa.vbitrate = -1;
	pa.abitrate = -1;
	pa.keyint = 50;
	pa.bframes = 6;
	pa.quality = 32;
	pa.width = -1;
	pa.height = -1;
	pa.fps = -1;
	
	ZcvZipInit();
	
	hndl = ZcvZipCreate();
	if (hndl >= 0)
	{
		ZcvZip(hndl, &pa);
		ZcvZipRelease(hndl);
	}

	ZcvZipDeInit();
	
	printf("compress over\n");
	
	return 0;
  }

  